This topic demonstrates the use of PESetFormula. You can use code similar to this at any time to change a formula string:
LOCAL nError, cFormula, cFormulaName
cFormula = "Sum({orders.LINEITEM})"
cFormulaName = "lineitemtotal"
result = PESetFormula(Job, cFormulaName, cFormula)
IF result = .F.
nError = PEGetErrorCode(Job)
&& Handle error
return
ENDIF
Seagate Software IMG Holdings, Inc. http://www.seagatesoftware.com Support services: http://support.seagatesoftware.com |